import {TableColumns} from "@/components/layout/table/table-columns";
import {FORMAT, NUMBER} from "@/utils/enums/type-enums";

/**
 * 床位列表
 */
export const bedsColumns: TableColumns[] = [
  {
    type: NUMBER,
    label: '序号'
  },
  {
    label: '床位名称',
    name: 'name'
  },
  {
    label: '床位类型',
    name: 'bedTypeName'
  },
  {
    label: '所在位置',
    name: 'position'
  },
  {
    label: '当前关联人员',
    name: 'displayName'
  },
  {
    label: '当前关联设备',
    name: 'bedName'
  },
  {
    type: FORMAT,
    label: '床位状态',
    name: 'bedStatus',
    width: 100,
    value: [{value: 0, label: '空置'}, {value: 1, label: '使用中'}]
  },
  {
    label: '当前状态',
    name: 'bedName'
  },
  {
    label: '操作',
    type: 'custom',
    align: 'center',
    buttons: [
      {method: 'edit', text: '编辑'},
      {method: 'relation', text: '关联设备'}
    ]
  },
]